package cn.javase.concurrent._设计模式._终止模式之两阶段终止._01_利用isInterrupted;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Test {
    public static void main(String[] args) throws InterruptedException {
        TPTInterrupt tptInterrupt = new TPTInterrupt();
        tptInterrupt.start();
        Thread.sleep(5000);
        log.debug("stop");
        tptInterrupt.stop();
    }
}
